package com.qf.function;/*
*王浩政 
*whz
2022/9/6
12:00
*小米商城
*/

import com.qf.pojo.User;

import javax.jws.soap.SOAPBinding;
import java.util.function.BiFunction;

public class BiFunctionTest {
    public static void main(String[] args) {
        BiFunction<String,Integer, User> biFunction=(name,age)->{
          User user=new User();
          user.setName(name);
          user.setAge(age);
          return user;
        };

        User user=biFunction.apply("孙悟空",500);
        System.err.println(user);


    }
}
